# Maintainer: Biswapriyo Nath <nathbappai@gmail.com>

pkgname=ncdu
pkgver=1.15.1
pkgrel=1
pkgdesc="Disk usage analyzer with an ncurses interface."
arch=('i686' 'x86_64')
url="https://dev.yorhel.nl/ncdu"
license=('custom:MIT')
depends=('ncurses')
makedepends=('ncurses-devel')
source=("https://dev.yorhel.nl/download/${pkgname}-${pkgver}.tar.gz"{,.asc})
sha256sums=('b02ddc4dbf1db139cc6fbbe2f54a282770380f0ca5c17089855eab52a9ea3fb0'
            'SKIP')
validpgpkeys=('74460D32B80810EBA9AFA2E962394C698C2739FA') # Yoran Heling <info@yorhel.nl>

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
